#pragma once
#include <QPointF>
#include <QString>
#include <QVariantMap>

enum class GeomType { Point, LineString, Polygon };

struct Vertex {
    QPointF p;
    bool selected = false;
//    QString name;          // <-- 新增
};
using VertexList = QVector<Vertex>;

struct Feature {
    QString id;
    GeomType type;
    VertexList vtx;
    QVariantMap props;
    QString name;   // <-- 新增：整个图形的名称
};

